﻿Type.registerNamespace("Microsoft.Live.ClientControls.VE.Extenders")
Microsoft.Live.ClientControls.VE.Extenders.Pan=function(element){
Microsoft.Live.ClientControls.VE.Extenders.Pan.initializeBase(this,[element])
this._deltaX
this._deltaY
this._mapControlID}
Microsoft.Live.ClientControls.VE.Extenders.Pan.prototype={
initialize : function(){
Microsoft.Live.ClientControls.VE.Extenders.Pan.callBaseMethod(this,'initialize')
$addHandler(this.get_element(),"click",Function.createDelegate(this,this._onClick))
},
get_DeltaX : function(){
return this._deltaX
},
set_DeltaX : function(value){
this._deltaX=value
},
get_DeltaY : function(){
return this._deltaY
},
set_DeltaY : function(value){
this._deltaY=value
},
get_MapControlID : function(){
return this._mapControlID
},
set_MapControlID : function(value){
this._mapControlID=value
},
_onClick : function(e){
var mapcontrol=$find(this._mapControlID)
if(mapcontrol){
mapcontrol.Pan(this._deltaX,this._deltaY)}
e.preventDefault()
},
dispose : function(){
$clearHandlers(this.get_element())
Microsoft.Live.ClientControls.VE.Extenders.Pan.callBaseMethod(this,'dispose')}}
Microsoft.Live.ClientControls.VE.Extenders.Pan.registerClass("Microsoft.Live.ClientControls.VE.Extenders.Pan",Sys.UI.Behavior)
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded()
